﻿@using WebApplication3.ViewModels
@model EmployeeListViewModel
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>MyView</title>
</head>
<body>
    <div style="text-align:left"> Hello, @Model.UserName </div>
    <hr />
    <div>
        <table>

            <tr>

                <th>Employee Name</th>

                <th>Salary</th>

            </tr>
            @foreach (EmployeeViewModel item in Model.Employees)
            {
                <tr>
                    <td> @item.EmployeeName </td>
                    <td style="background-color:@item.SalaryColor"> @item.Salary </td>
                </tr>
            }

        </table>
    </div>
    <hr />
        <a href="/Test/AddNew">Add New</a>
        <a href="/Authentication/Logout">Logout</a>

    @{
        Html.RenderPartial("Footer", Model.FooterData);
    }
    </div>
</body>
</html>

